import request from '@/utils/request'

export function getPolicyList(query) {
  return request({
    url: '/knowledge/policy/getList',
    method: 'post',
    data: query
  })
}

export function getPolicyDetail(id) {
  return request({
    url: '/knowledge/policy/getDetail',
    method: 'post',
    data: id
  })
}

export function savePolicy(formdata) {
  return request({
    url: '/knowledge/policy/save',
    method: 'post',
    data: formdata
  })
}
export function changeStatusByPolicyID(id) {
  return request({
    url: '/knowledge/policy/change-status',
    method: 'post',
    data: id
  })
}

export function removePolicyByID(id) {
  return request({
    url: '/knowledge/policy/remove',
    method: 'post',
    data: id
  })
}

export function deletePolicyByID(id) {
  return request({
    url: '/knowledge/policy/delete',
    method: 'post',
    data: id
  })
}

